package com.hjk.common.utils.threadlocals;


/**
 * @author hjk
 */
public class UserHolder {
    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setUser(String user) {
        threadLocal.set(user);
    }

    public static String getUser() {
        return threadLocal.get();
    }

    public static void removeUser() {
        threadLocal.remove();
    }
}
